package route

import (
	"github.com/gin-gonic/gin"
	"main/src/apps/appServer"
	"main/src/apps/contentManage"
	"main/src/apps/logManage"
	"main/src/apps/siteManage"
	"main/src/apps/skipManage"
	"main/src/apps/userManage"
)

func InitRoute(app *gin.Engine) {

	//apps.Migrate(&userManage.User{})
	//apps.Migrate(&skipManage.Cat{})
	//apps.Migrate(&skipManage.Skip{})
	//apps.Migrate(&contentManage.Content{})
	//apps.Migrate(&contentManage.KeyWord{})
	//apps.Migrate(&contentManage.Image{})
	//apps.Migrate(&siteManage.Domain{})
	//apps.Migrate(&logManage.Log{})

	userManage.UserRoute.Register(app)
	skipManage.SkipRoute.Register(app)
	skipManage.CatRoute.Register(app)
	contentManage.ContentRoute.Register(app)
	siteManage.SiteRoute.Register(app)
	logManage.LogRoute.Register(app)

	// 提供给客户端的route
	appServer.AppRoute.Register(app)
}
